package si.yun;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @program: SiYunClass
 * @description:
 * @author: 崔晓晨
 * @create: 2021-07-04 18:45
 **/
@SpringBootApplication
@ServletComponentScan//扫描监听器，过滤器，servlet
@EnableTransactionManagement//开起事务
@MapperScan("si.yun.dao")//扫描映射文件
@EnableScheduling
public class Run {
    public static void main(String[] args) {
        SpringApplication.run(Run.class, args);
    }
}